package cn.sc.summer.mybatis.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 类名：租户信息配置项
 *
 * @author a-xin
 * @date 2023/12/13 16:19
 */
@Data
@Component
@RefreshScope
@ConfigurationProperties("tenant")
public class TenantProperties {

    /**
     * 是否开启租户，默认关闭租户拦截
     */
    private Boolean enabled = Boolean.FALSE;

    /**
     * 忽略租户拦截表
     */
    private List<String> ignore;

}
